package com.guaoran.other.factory.abstra;

import com.guaoran.other.factory.Mengniu;
import com.guaoran.other.factory.Milk;
import com.guaoran.other.factory.Telunsu;
import com.guaoran.other.factory.func.YiliFactory;

/**
 * @author : 孤傲然
 * @Description :
 * @date :2018/5/12 22:25
 */
public class MilkFactory extends AbstractFactory{
    @Override
    public Milk getMengniuMilk() {
        return new Mengniu();
    }

    @Override
    public Milk getYiliMilk() {
        return new YiliFactory().getMilk();
    }

    @Override
    public Milk getTelunsuMilk() {
        return new Telunsu();
    }
}
